package cn.kgc.mapper;

import cn.kgc.pojo.UserInf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<UserInf> getUser();
    UserInf getUserInfo(@Param("loginname") String loginname,
                        @Param("PASSWORD") String PASSWORD);

    int getCount(@Param("status") Integer status,
                 @Param("username") String username);

    List<UserInf> getUserByPage(@Param("pageNo") Integer pageNo,
                                @Param("pageSize") Integer pageSize,
                                @Param("status") Integer status,
                                @Param("username") String username);

    UserInf getUserById(@Param("id")Integer id);

    int updateUser(UserInf userInf);

    int addUser(UserInf userInf);

    int delId(Integer id);

    UserInf getUserloginname(@Param("loginname") String loginname);
}
